<?php

use Illuminate\Support\Facades\Route;

Route::group(['namespace' => '\App\Http\Controllers\Auth'], function () {

    //admin

    Route::resource('user', 'UserController')->middleware(['auth:admin', 'permission:system.permission.user|parking-lot.permission.user|merchant.permission.user']);
    Route::post('user/info', 'UserController@info')->middleware(['auth:admin']);
});
